package com.luguz.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author guz
 * @since 2022-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String mobile;

    private Integer age;

    @TableField("source_from")
    private String sourceFrom;

    @TableField("auth_flag")
    private String authFlag;

    @TableField(fill= FieldFill.INSERT)
    private LocalDate createDate;

    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDate updateDate;

    @TableLogic
    private Integer deleted;


}
